<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>账号激活</title>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/jquery-1.4.2.min.js"></script>
<style type="text/css">
.notifyBox {
	background: #FEFDBD url(<%=request.getContextPath()%>/images/notifyok.gif
		) no-repeat scroll 15px 13px;
	border: 1px solid #FC0;
	color: #333;
	margin: 0px auto;
	padding: 20px 15px 15px 70px;
	width: 615px;
}
</style>
</head>
<body>
<div class="notifyBox"><s:if test="%{hasFieldErrors()}">
	<h3>Fuck you!</h3>
	<ul>
		<li>激活账号失败!</li>
	</ul>
	<s:fielderror></s:fielderror>
</s:if> 
<s:else>
	<h3>恭喜您!</h3>
	<ul>
		<li>注册成功，您现在已经成为智城的用户。<span id="time">5</span>秒之后跳转到登陆页面</li>
	</ul>
<script type="text/javascript">
	var interval = setInterval(countdown, 1000);
	
	function countdown() {
		var time = $("#time").text();
		time = parseInt(time);
		if (time == 0) {
			clearInterval(interval);
			window.location.href = "<%=request.getContextPath()%>/passport/login";
		} else {
			time --;
			$("#time").text(time);
		}
	}
</script>
</s:else>
</div>
</body>
</html>